let a = undefined 
function checkData() {
  a = '是'
}
function App() {

  return (
    <div className="App">
      <div>{a}我被点击了吗？ </div>
     
      <button onClick={checkData()}>点击</button>
    </div>
  );
}

export default App;
